import http from '@/utils/request'

// 工段 API
export default{

    // 获取工段列表
    async pageList(params){
      return await http.get("/api/section/list",params);
    },

    /**
    * 添加工段
    * @returns
    */
     async addObj(params) {
      return await http.post("/api/section/add", params);
    },
      
    /**
    * 编辑工段
    * @returns
    */
    async updateObj(params) {
      return await http.put("/api/section/update", params);
    },

    // 审核
    async audit(params) {
      return await http.put("/api/section/approve", params);
    },

    // 批量删除/删除工段
    async del(params) {
      return await http.put("/api/section/delete", params);
    }
}